import React, { useEffect, useState } from 'react';
import { ProductCard, Tag, Button } from 'react-vant';
function Kehuan() {
    const [data,setData]=useState('')
    const isData=[
        
        {
            id:2,
            title:'上门龙婿',
            keyword:'科幻',
            img:'https://lupic.cdn.bcebos.com/20230522_i2t_new_model_append/3090680025_18_1024_570.jpg'
        },
        
        {
            id:5,
            title:'胜多负少',
            keyword:'科幻',
            img:'https://ts1.tc.mm.bing.net/th?id=ORMS.dfe885035f7cd13a41426f3c65d66f6e&pid=Wdp&w=612&h=304&qlt=90&c=1&rs=1&dpr=1.25&p=0'
        },
        
        
    ]
    useEffect(()=>{
        setData(isData)
    },[])
    return (
        <div>
            {data&&data.map((item,index)=>{
                return <ProductCard
      
      desc={item.keyword}
      title={item.title}
      thumb={item.img}
    />
            })}
        </div>
    );
}

export default Kehuan;